/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jee6.umfrage;

import java.io.Serializable;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
/**
 *
 * @author Florian
 */
@ManagedBean
public class Userold implements Serializable{

  
    private String firstname;
    private String lastname;
    private String email;
    private String password;
    
    @EJB  
    private UserService service;
    
    

   
    public void addUser() {
     
           Userold user = new Userold();
            user.setFirstname(firstname);
            user.setLastname(lastname);
            user.setEmail(email);
            user.setPassword(password);
            service.create(user);
       
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


 

   


 
}

